package com.geovis.emergency.spd.controller.mobile;

import com.geovis.common.core.api.Result;
import com.geovis.common.core.controller.BaseController;
import com.geovis.emergency.spd.biz.pc.service.IPcPlottingService;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：linwl
 * @date ：Created in 2022/6/17 10:25
 * @description：移动端标绘信息相关接口
 * @version: v1
 */
@RestController
@RequestMapping("/mobile/pcPlotting")
@RequiredArgsConstructor
@Api(value = "移动端-应急预案指挥模块-标绘相关接口", tags = "移动端-应急预案指挥模块-标绘相关接口")
@Slf4j
public class PcPlottingMobileController extends BaseController<IPcPlottingService> {

    @ApiOperationSupport(order = 1)
    @ApiOperation(value = "根据演练ID查询点列表", notes = "根据演练ID查询点列表")
    @GetMapping({"/getListByDrillId/{pcDrillId}"})
    public Result getListByDrillId(@PathVariable("pcDrillId") String pcDrillId) {
        return Result.ok(baseService.getListByDrillId(pcDrillId));
    }

}
